/**
 * Yolema.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */
package org.grayrabbit.pay.chinapnr.common;


/**
 * 汇付支付网关接口
 * 
 * @author wy
 * @version $Id: ChinapnrGate.java, v 0.1 2012-10-5 上午9:20:45 wy Exp $
 */
public enum ChinapnrGate {
    
        CCB("T1", "建设银行"),
        CMBC("T2", "民生银行"),
        CIB("T3", "兴业银行"),
        GDB("TV", "广发银行"),
        ICBC("T5", "工商银行"),
        CMB("T6", "招商银行借记卡"),
        CNCB("T7", "中信银行"),
        VISA("T8", "VISA"),
        MASTER("T9", "MASTER"),
        JCB("TA", "JCB"),
        BC("TB", "中国银行"),
        CMB_TC("Tc", "招行两通");
        
        String gate;
        String bank;
        
        ChinapnrGate(String gate,String bank){
            this.gate = gate;
            this.bank = bank;
        }
        
        public static ChinapnrGate valueOfGate(String gate){
            for(ChinapnrGate cg:ChinapnrGate.values()){
                if(cg.getGate().equalsIgnoreCase(gate)){
                    return cg;
                }
            }
            return null;
        }

        public String getGate() {
            return gate;
        }

        public void setGate(String gate) {
            this.gate = gate;
        }

        public String getBank() {
            return bank;
        }

        public void setBank(String bank) {
            this.bank = bank;
        }
        
        

}
